import request from '@/utils/request'

// 获取上游厂商
export const apiGetUpSupplierList = (data) => {
    return request({
        url: '/mdm-supplier/find/page',
        method: 'post',
        data
    })
}
// 新增上游厂商信息
export const apiAddUpSupplierInfo = (data) => {
    return request({
        url: '/mdm-supplier/create',
        method: 'post',
        data
    })
}
// 更新上游厂商信息
export const apiUpdateUpSupplierInfo = (data) => {
    return request({
        url: '/mdm-supplier/update',
        method: 'post',
        data
    })
}
// 删除上游厂商信息
export const apiDelUpSupplier = (id) => {
    return request({
        url: '/mdm-supplier/delete',
        method: 'post',
        data: {
            id
        }
    })
}








// 获取下游厂商
export const apiGetDownSupplierList = (data) => {
    return request({
        url: '/mdm-customer/find/page',
        method: 'post',
        data
    })
}
// 新增下游厂商信息
export const apiAddDownSupplierInfo = (data) => {
    return request({
        url: '/mdm-customer/create',
        method: 'post',
        data
    })
}
// 设备种类下拉框
export const apiAddDownSupplierClass = (data) => {
    return request({
        url: '/select/condition/find/list/class',
        method: 'post',
        data
    })
}
// 更新下游厂商信息
export const apiUpdateDownSupplierInfo = (data) => {
    return request({
        url: '/mdm-customer/update',
        method: 'post',
        data
    })
}
// 删除下游厂商信息
export const apiDelDownSupplier = (id) => {
    return request({
        url: '/mdm-customer/delete',
        method: 'post',
        data: {
            id
        }
    })
}




// 获取单位分类
export const apiGetSupplierKindList = (data) => {
    return request({
        url: '/mdm-customer-class/find/page',
        method: 'post',
        data
    })
}
// 新增单位分类
export const apiAddSupplierKind = (data) => {
    return request({
        url: '/mdm-customer-class/create',
        method: 'post',
        data
    })
}
// 编辑单位分类
export const apiEditSupplierKind = (data) => {
    return request({
        url: '/mdm-customer-class/update',
        method: 'post',
        data
    })
}